/*
 * @Author: your name
 * @Date: 2021-05-20 10:17:54
 * @LastEditTime: 2021-05-24 10:00:41
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \wallet\vue.config.js
 */
module.exports = {
  lintOnSave: false,
  publicPath: process.env.NODE_ENV === 'production' ? process.env.VUE_APP_PUBLICPATH : '/',
  // 运行配置
  devServer: {
    // port: '9099', //代理端口
    open: false, 
    proxy: {
      '/api': {
        target: 'http://192.168.1.25:8080/',
        // target: process.env.VUE_APP_HTTP_URL,
        changeOrigin: true, //是否跨域
        pathRewrite: { //重写路径
          '^/api': '/'  // 或 者 'http://localhost:8080/api'
        }
      }
    },
    overlay: {
      warning: false,
      errors: false
    }
  },
};